<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Sugar</title>
</head>

<body>
  <script>

    /* 注意：由于这几个数据以后要作为请求参数，所以命名的时候要根据接口文档的请求参数命名，不能随意 */
    const myThis = {
      username: 11,
      passsssssword: 22,
      nickname: '昵称'
    }


    // const username = myThis.username
    // const password = myThis.password
    // const nickname = myThis.nickname

    const { username, password, nickname } = myThis

    console.log('username', username);    //  username  11
    console.log('password', password);    //  password  22
    console.log('nickname', nickname);    //  nickname  '昵称'

    // if(!username){
    // }
    // axios({
    //   username,
    // })

  </script>
</body>

</html>